/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package treenode.visitor;

/**
 *
 * @author Bartek
 */
public class ModuloNode extends BinaryOperatorNode {

    public ModuloNode(TreeNode left, TreeNode right) {
        super(left, right);
    }
    
    @Override
    public int compute(int left, int right) {
        return left % right;
    }

    @Override
    public String getLabel() {
        return "%";
    }
    
}
